#include<bits/stdc++.h>
using namespace std;
int n,a[10000],c[10000],t;

int main(){
freopen(" color.in","r",stdin);
freopen(" color.out","w",stdout);
  cout<<"1"<<endl<<"0"<<endl<<"8";
fclose(stdin);
fclose(stdout);
return 0;
}
